package com.guigu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.pojo.SystemUsers;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

public interface SystemUsersService extends IService<SystemUsers> {

    //后端系统登录
    SystemUsers adminlogin(SystemUsers systemUsers);

    //获取所有员工
    Page<SystemUsers> queryallUsers(Integer pageno, Integer pagesize, SystemUsers systemUsers);

    //修改员工中状态
    Map alterSystembyid(SystemUsers systemUsers);

    //添加员工
    Map addbySystem(Integer roleName,SystemUsers systemUsers, MultipartFile img, HttpServletRequest request);

    //根据id查询员工
    SystemUsers querybyid(SystemUsers systemUsers);

    //修改
    Map editStaff(SystemUsers systemUsers,MultipartFile img,Integer roleId,HttpServletRequest request);

    //判断重复
    Map querybyname(SystemUsers systemUsers);

    //修改密码
    Map editPwd(SystemUsers systemUsers);
}
